package com.srzk.youthleagueback.mapper;

import com.srzk.youthleagueback.entity.po.Teacher;
import java.util.List;

import org.apache.ibatis.annotations.*;

@Mapper
public interface TeacherMapper {
    @InsertProvider(value = TeacherProvider.class,method = "insert")
    int insert(Teacher record);

    @Select("select * from teacher where username = #{username}")
    Teacher selectByPrimaryKey(@Param("username") String username);

    @Select("select * from teacher")
    List<Teacher> selectAll();

    @UpdateProvider(value = TeacherProvider.class,method = "update")
    int updateByPrimaryKey(Teacher record);
}